package com.wfcm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfcm.dao.WfGoodsInfoDao;
import com.wfcm.entity.WfGoodsInfoEntity;
import com.wfcm.service.WfGoodsInfoService;



@Service("wfGoodsInfoService")
public class WfGoodsInfoServiceImpl implements WfGoodsInfoService {
	@Autowired
	private WfGoodsInfoDao wfGoodsInfoDao;
	
	@Override
	public WfGoodsInfoEntity queryObject(Integer id){
		return wfGoodsInfoDao.queryObject(id);
	}
	
	@Override
	public List<WfGoodsInfoEntity> queryList(Map<String, Object> map){
		return wfGoodsInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return wfGoodsInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(WfGoodsInfoEntity wfGoodsInfo){
		wfGoodsInfoDao.save(wfGoodsInfo);
	}
	
	@Override
	public void update(WfGoodsInfoEntity wfGoodsInfo){
		wfGoodsInfoDao.update(wfGoodsInfo);
	}
	
	@Override
	public void delete(Integer id){
		wfGoodsInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		wfGoodsInfoDao.deleteBatch(ids);
	}
	
}
